
const path = require('path');

module.exports = {
  publicPath: './',
  pluginOptions: {
    "style-resources-loader": {
        preProcessor: "less",
        patterns: [
          //这个是加上自己的路径
          path.resolve(__dirname, "./src/assets/css/variable.less")
      ]
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        "@": path.join(__dirname, "src"),
      }
    }
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'http://www.cabage.cn',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': '',
        }
      },
    }
  }
 }